<%@ Page Language="c#" CodeBehind="CellProperties.aspx.cs" AutoEventWireup="True"
    Inherits="FormsGenerator.CellProperties" ValidateRequest="false" CodePage="65001" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>Cell properties</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Styles/Default.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		function updateForm(parGUID, parCloseWindow)
		{
			window.opener.location = "EditForm.aspx?ID=" + parGUID;
			if (parCloseWindow)
			{
				window.close();
			}
		}
    </script>

</head>
<body>
    <form id="CellProperties" method="post" runat="server">
    <asp:Label ID="LabelErrorMessage" runat="server" ForeColor="Red" Visible="False"
        CssClass="ErrorMessage" EnableViewState="False"></asp:Label>
    <table width="100%">
        <tr>
            <td>
                Cell&nbsp;location:
                <asp:Label ID="LabelPosition" runat="server"></asp:Label>
            </td>
            <td align="right">
                <asp:Button ID="ButtonUpdate" runat="server" Text="Update" OnClick="ButtonUpdate_Click">
                </asp:Button><asp:Button ID="ButtonUpdateAndClose" runat="server" Text="Update And Close"
                    OnClick="ButtonUpdateAndClose_Click"></asp:Button>
            </td>
        </tr>
    </table>
    <p>
        Column Span:
        <asp:TextBox ID="TextBoxColSpan" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Please add a numeric value"
            ControlToValidate="TextBoxColSpan" CssClass="ErrorMessage" MinimumValue="1" Type="Integer"
            MaximumValue="9999"></asp:RangeValidator><br />
        <asp:TextBox ID="TextBoxRowSpan" runat="server" Visible="False"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator2" runat="server" CssClass="ErrorMessage" MaximumValue="9999"
            Type="Integer" MinimumValue="1" ControlToValidate="TextBoxRowSpan" ErrorMessage="Please add a numeric value"></asp:RangeValidator><br />
        Alignment:
        <asp:DropDownList ID="DropDownListAlignment" runat="server">
        </asp:DropDownList>
    </p>
    <p>
        <br />
        <asp:Label ID="LabelExecuteJavascript" runat="server" Visible="False"></asp:Label><br />
        <asp:Label ID="LabelDebug" runat="server" EnableViewState="False"></asp:Label></p>
    </form>
</body>
</html>
